package org.xyf.workflow.service;

import org.flowable.engine.history.HistoricProcessInstance;
import org.flowable.task.api.Task;

import java.util.List;
import java.util.Map;

public interface WorkflowService {

    void addUserToGroup(String userId,String groupId,String tenantId);

    void createUser(String userId,String tenantId);

    void deploy(String tenantId,String resourcePath);

    String startProcessInstance(String key, String tenantId, Map<String, Object> variables);

    List<Task> queryUserActiveTask(String userId, String tenantId);

    void submitUserTask(String taskId,String userId,Map<String, Object> data);

    List<HistoricProcessInstance> getApprovedHistory(String userId,String tenantId);
}
